home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 13
/
AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso
/
rexx
/
tree.m2i
< prev
next >
Wrap
Text File
|
1997-11-18
|
980b
|
75 lines
/* affichage arborescence des Menus de M2I5 */
/* Thierry Schmitt Avril 1996*/
ADDRESS "M2IPort.Rexx"
OPTIONS RESULTS
m2ipenv = ":"
tabs = "|"
SAY ":"
CALL explo
SAY ""
EXIT
explo: PROCEDURE EXPOSE m2ipenv tabs
posdock = 1
m2ipath = m2ipenv
blks = tabs
nopipe = LEFT(blks,LENGTH(blks)-1)
COUNT m2ipath||"*"
whoops = RC
nbitems = RESULT
DO WHILE whats~=6
GETNAME m2ipath||posdock
whats = RC
ndock = RESULT
IF whats = 6 THEN BREAK
IF RIGHT(ndock,2)~=".D" THEN DO
GET TOOL m2ipath||posdock
dosname = RESULT
END
SAY blks
SAY nopipe||LEFT(ndock,LENGTH(ndock)-2)
IF (LEFT(ndock,1)="0" & RIGHT(ndock,2)~=".D") THEN SAY blks||dosname
nbitems = nbitems - 1
IF RIGHT(ndock,2)=".D" THEN DO
m2ipenv = m2ipath||posdock||"/"
IF nbitems = 0 THEN DO
tabs = nopipe||" "||COPIES(" ",LENGTH(ndock)-3)||"|"
END
ELSE DO
tabs = blks||COPIES(" ",LENGTH(ndock)-3)||"|"
END
CALL explo
END
posdock = posdock + 1
END
RETURN